package com.xbongbong.rule.rules;

import org.jeasy.rules.api.Rule;

/**
 * 规则
 * @author zheng.li
 * @param <T> type of Fact value
 */
public interface XbbRule<T> {


    /**
     * 转换为easy-rules的Rule
     * @see Rule
     * @return Rule
     */
     Rule toEasyRule();

    /**
     * 获取规则唯一标识
     * @return ruleId
     */
    String getRuleId();

    /**
     * 获取规则匹配后的执行逻辑
     * @return XbbAction<T>
     */
    XbbAction<T> getXbbAction();

}
